package com.vinoxm.rss.controller;

import com.vinoxm.common.base.result.BaseResult;
import com.vinoxm.common.core.controller.BaseController;
import com.vinoxm.rss.handler.interceptor.annotation.AwaitRssUpdate;
import com.vinoxm.rss.handler.interceptor.annotation.NeedSecret;
import com.vinoxm.rss.service.RssTrackerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@NeedSecret
@AwaitRssUpdate
public class RssTrackerController extends BaseController<RssTrackerService> {

    @GetMapping("tracker.getAll")
    public BaseResult getAllTracker() {
        return baseService.getAllTracker();
    }

}
